/*
 * 作者: 黄伟
 * 时间: 2017-02-08
 * 说明：
 * Copyright (c) 2016-2017 中研沃兮
 */
define(function(require) {
	require("jquery");

	var c = require('app/utils/CommonUtils');
	var hc = require('app/utils/HttpClientUtils');
	var CacheUtils = require('app/utils/CacheUtils');
	var win = window;

	var action = {};

	action.back = function() {

		api.closeWin({});
	}

	action.clearCache = function() {
		api.clearCache({}, function(ret, err) {
			//coding...
			api.toast({
				msg: '清理存储空间完成'
			});
		});
		CacheUtils.deleteImageCache();
	}
	return action;
});